package hcn.sync;


import ctd.util.annotation.RpcService;
import hcn.sync.exception.SynchronizeException;

import java.util.List;

/**
 * DataSynchronizer(医院前置机 调用 平台前置机,暂存在平台前置机,再异步到云平台)
 *
 * @author 9527
 * @date 15/11/26
 */
public interface DataSynchronizer<T> {
    @RpcService
    boolean addData(List<T> dataList) throws SynchronizeException;
    @RpcService
    boolean addData(String dataXml) throws SynchronizeException;
    @RpcService
    boolean removeData(List<T> dataList) throws SynchronizeException;
    @RpcService
    boolean removeData(String dataXml) throws SynchronizeException;
    @RpcService
    boolean updateData(List<T> dataList) throws SynchronizeException;
    @RpcService
    boolean updateData(String dataXml) throws SynchronizeException;

}
